package com.aia.prm.web.ria.app.ui.lms;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.aia.prm.domain.VOLms;
import com.aia.prm.domain.VOPlan;
import com.vaadin.data.util.BeanItemContainer;

@SuppressWarnings("serial")
public class LmsContainer extends BeanItemContainer<VOLms> implements Serializable {
	public static final Object[] NATURAL_COL_ORDER = new Object[] { "LMS_LX_NAME","LMS_FREEFLAG4", "LMS_DATE", "LMS_TIME", "LMS_MOBILE", "LMS_FREEFLAG3",
			"GP_NAME", "LMS_FISRT_AMOUT", "LMS_SEND_FLAG", "LMS_SEND_REF", "LMS_SEND_WHY" };

	public static final String[] COL_HEADERS_SHOW = new String[] { "姓名", "来自迷你版?", "日期", "时间", "手机号", "要求营销员联系", "产品", "首期保费", "发送成功?", "发送状态码",
			"发送状态描述", };

	public static final Object[] NATURAL_COL_ORDER_FORM = new Object[] { "LMS_GUID", "LMS_FREEFLAG4", "LMS_BB_SEX", "LMS_BB_AGE", "LMS_BB_PROVINCE",
			"LMS_BB_CITY", "LMS_BB_DISTRICT", "LMS_LX_SEX", "LMS_LX_AGE", "LMS_LX_PROVINCE", "LMS_LX_CITY", "LMS_LX_DISTRICT",
			"LMS_LX_NAME", "LMS_RELATION", "LMS_IP", "LMS_MOBILE", "LMS_FREEFLAG3", "LMS_MOBILE_COUNT", "LMS_FLAG_VARIFY",
			"LMS_CALLMEFLAG", "PL_ID", "GP_PK", "GP_NAME", "GP_TYPE1", "GP_TYPE2", "GP_TYPE3", "GP_MAINCODE", "GP_EXTCODE1", "GP_EXTCODE2",
			"GP_EXTCODE3", "LMS_INSU_AMOUT", "LMS_FISRT_AMOUT", "LMS_SEND_FLAG", "LMS_SEND_REF", "LMS_SEND_WHY", "LMS_SEND_DATE",
			"LMS_SEND_TIME", "LMS_DATE", "LMS_TIME" };

	public static final Map<String, String> FIELD_NAME_MAP = new HashMap<String, String>();

	static {

		FIELD_NAME_MAP.put("LMS_GUID", "记录ID");
		FIELD_NAME_MAP.put("LMS_BB_SEX", "被保人性别");
		FIELD_NAME_MAP.put("LMS_BB_AGE", "被保人年龄");
		FIELD_NAME_MAP.put("LMS_BB_PROVINCE", "被保人省");
		FIELD_NAME_MAP.put("LMS_BB_CITY", "被保人市");
		FIELD_NAME_MAP.put("LMS_BB_DISTRICT", "被保人区");
		FIELD_NAME_MAP.put("LMS_LX_SEX", "联系人性别");
		FIELD_NAME_MAP.put("LMS_LX_AGE", "联系人年龄");
		FIELD_NAME_MAP.put("LMS_LX_PROVINCE", "联系人省");
		FIELD_NAME_MAP.put("LMS_LX_CITY", "联系人市");
		FIELD_NAME_MAP.put("LMS_LX_DISTRICT", "联系人区");
		FIELD_NAME_MAP.put("LMS_LX_NAME", "名字");
		FIELD_NAME_MAP.put("LMS_RELATION", "关系");
		FIELD_NAME_MAP.put("LMS_IP", "IP地址");
		FIELD_NAME_MAP.put("LMS_MOBILE", "手机号");
		FIELD_NAME_MAP.put("LMS_FREEFLAG3", "要求营销员联系");
		FIELD_NAME_MAP.put("LMS_FREEFLAG4", "来自迷你版?");
		FIELD_NAME_MAP.put("LMS_MOBILE_COUNT", "第几次做试算");
		FIELD_NAME_MAP.put("LMS_FLAG_VARIFY", "是否手机激活");
		FIELD_NAME_MAP.put("LMS_CALLMEFLAG", "愿意联系");
		FIELD_NAME_MAP.put("PL_ID", "产品");
		FIELD_NAME_MAP.put("GP_PK", "组合数字");
		FIELD_NAME_MAP.put("GP_NAME", "组合短名");
		FIELD_NAME_MAP.put("GP_TYPE1", "分类1");
		FIELD_NAME_MAP.put("GP_TYPE2", "分类2");
		FIELD_NAME_MAP.put("GP_TYPE3", "分类3");
		FIELD_NAME_MAP.put("GP_MAINCODE", "主险代码");
		FIELD_NAME_MAP.put("GP_EXTCODE1", "附加1Code");
		FIELD_NAME_MAP.put("GP_EXTCODE2", "附加2Code");
		FIELD_NAME_MAP.put("GP_EXTCODE3", "附加3Code");
		FIELD_NAME_MAP.put("LMS_INSU_AMOUT", "保额");
		FIELD_NAME_MAP.put("LMS_FISRT_AMOUT", "首期保费");
		FIELD_NAME_MAP.put("LMS_SEND_FLAG", "发送成功?");
		FIELD_NAME_MAP.put("LMS_SEND_REF", "发送状态码");
		FIELD_NAME_MAP.put("LMS_SEND_WHY", "发送状态描述");
		FIELD_NAME_MAP.put("LMS_SEND_DATE", "发送到LMS日期 ");
		FIELD_NAME_MAP.put("LMS_SEND_TIME", "发送到LMS时间");
		FIELD_NAME_MAP.put("LMS_DATE", "日期 ");
		FIELD_NAME_MAP.put("LMS_TIME", "时间");

	}

	public static final List<String> PLAN_TYPE_LIST = new ArrayList<String>();
	static {
		PLAN_TYPE_LIST.add("合同");
		PLAN_TYPE_LIST.add("保险金");
	}

	public LmsContainer() throws InstantiationException, IllegalAccessException {
		super(VOLms.class);
	}
}